package org.example.forum.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.forum.model.Article;

import java.util.List;


/**
 *
 */
@Mapper
public interface ArticleMapper {
    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);
    List<Article> selectAll ();
    List<Article> selectAllByBoardId (Long boardId);
    List<Article> selectByUserId (Long userId);
    Article selectDetailById(Long id);
}